package cn.edu.scau.cmi.limingben.hibernateprog.model.dao;

import cn.edu.scau.cmi.limingben.hibernateprog.model.domain.Teacher;

public class TeacherDAO extends HibernateDAO<Teacher> {
    public void setName(Teacher teacher, String name) {
        teacher.setName(name);
        this.saveOrUpdate(teacher);
    }
    public void add(String name){
        this.setName(new Teacher(), name);
    }
}
